{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<include file="Public:header" />
<script type="text/javascript" src="./Public/Admin/Js/artDialog/artDialog.js?skin=default"></script>
<load href="__PUBLIC__/Js/artDialog/plugins/iframeTools.js" />
<script type="text/javascript">
<!--
function reset_pass(id){
	if(!confirm('是否确重置密码？'))
		return false;

	$.post(
			"__URL__/reset_pass/",
			{id:id},
			function(data){
				if(data.status == 0){
					alert(data.info);
					return ;
				}
				alert('密码已经重置，新密码是：'+data.info);
			},
			'json');
}

function change_role(user_id, role_id, obj){
	$.post(
			"__URL__/change_role/",
			{id:user_id, role_id:role_id},
			function(data){
				if(data.status == 0){
					alert(data.info);
					return ;
				}
				alert('角色变更成功！');
			},
			'json');
}
//-->
</script>
<!-- 菜单区域  -->

<!-- 主页面开始 -->
<div id="main" class="main" >

<!-- 主体内容  -->
<div class="content" >


<!-- 系统配置开始 -->
<div class="title">系统参数配置</div>
<!-- 列表显示区域  -->
<form method='post' id="form1" name="form1" action="__URL__/cfg_update" 
	onsubmit="javascript:if(!confirm('是否确认提交？')) return false;">
<table cellpadding=3 cellspacing=3 >
<volist name="cfg_list" id="cfg">
<tr>
	<td class="tRight" width="10%">{$cfg.cfg_name}：</td>
	<td class="tLeft" >
	<input type="text" name="{$cfg.cfg_key}" value="{$cfg.cfg_value}" />
	<em style="color:#ccc">{$cfg.cfg_memo}</em>
	</td>
</tr>
</volist>
<tr>
	<td></td>
	<td class="center"><div style="width:85%;margin:5px">
	<input type="submit" value="保 存"  class="button small"> 
	<input type="reset" class="button small" onclick="resetEditor()" value="重 置" >
	</div></td>
</tr>
</table>
</form>
<!-- 系统配置结束 -->

<!-- 管理组设定 -->
<div class="title">管理组设定</div>
<div class="operate" >
<a href="__URL__/admin_user_add">添加管理员</a>
</div>
<!-- 列表显示区域  -->
<div class="list" >
<table id="checkList" class="list" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td height="5" colspan="9" class="topTd"></td>
		</tr>
		<tr class="row">
			<th>角色</th>
			<th>账号</th>
			<th>真实姓名</th>
			<th>最后登陆时间</th>
			<th>密码</th>
		</tr>
		<empty name="list">
		<tr class="row" onmouseover="over(event)" onmouseout="out(event)"
			onclick="change(event)">
			<td colspan="9"></td>
		</tr>
		</empty>
		
		<volist name="list" id="vo">
		<tr class="row" onmouseover="over(event)" onmouseout="out(event)">
			<td>
				<neq name="vo.user_id" value="1">
				<select onchange="change_role({$vo.user_id}, this.value, this)">{:show_arr_opt($role_arr, $vo['user_role'], true)}</select>
				</neq>
			</td>
			<td>{$vo.user_name}</td>
			<td>{$vo.true_name}</td>
			<td>{$vo.last_login_time|toDate}</td>
			<td><a href="javascript:void(0);" onclick="reset_pass({$vo.user_id})">重置密码</a></td>
		</tr>
		</volist>
		<tr>
			<td height="5" colspan="9" class="bottomTd"></td>
		</tr>
	</tbody>
</table>
</div>
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->

